<?php


namespace App\Constants;

class ResponseCodeConstant
{
    // 通用返回码
    const PARAMS_ERROR = [400, '参数异常'];
    const AUTH_ERROR = [401, '授权错误'];
    const COMMON_ERROR = [422, '通用错误'];

    const USER_NOT_EXISTS = [1105, '用户不存在'];
    const ACCOUNT_FAILED = [1101, '账号密码不匹配'];

    const CREATE_FAILED = [999,'创建失败'];
    const UPDATE_FAILED = [998,'修改失败'];
    const DELETE_FAILED = [997,'删除失败'];
    const SEARCH_FAILED = [996,'查询失败'];


    const STATUS_SUCCESS = [200, '成功'];

    const USER_EXISTS = [1104, '用户已经存在'];

    const STATUS_SEND_FAILD = [1102, '发送验证码错误'];
    const DATA_VALID_FAIL = [1210, '数据校验失败 输入信息不合法'];
    const QUESTION_ERROR = [1211, '问题回答錯誤'];
    const QUESTION_OVER_TIMES = [1212, '回答問題次數超過5次'];
    const QUESTION_NONE = [1213, '沒有查到密保問題'];
    const UNKNOW_ERROR = [1990, '未知錯誤'];

    const UPDATE_PASS_FAIL = [1120, '更新密码失败'];


    const COMMON_ACTIVE_ERROE = [403, '用户未审核'];
    // 血糖相关业务错误码
    const SUGAR_SAVE_FAIL = [1301,'血糖存储错误'];
    const DATA_SAVE_DELAY = [1302,'超过有效期时间，请重新测量'];
    const DATA_QUERY_EMPTY = [1303,'查询数据为空'];
    const MEASURE_STATUS_ERROR = [1304,'测量状态不正确'];
    const MEASURE_TIME_ERROR = [1305,'测量时间不能为空'];
    const DATA_DELETE_ERROR = [1306,'删除失败'];
    // 血压相关业务错误码
    const PRESSURE_SAVE_FAIL = [1401,'血压存储错误'];
    const PRESSURE_MEASURE_MOTION = [1402,'随机量测，运动状态不能为空'];

    // 体温相关业务错误码
    const TEMPERATURE_SAVE_FAIL = [1501,'体温存储错误'];
    const DATA_ABNORMAL =['code'=>1307,'title'=>'量测异常','content'=>'常見原因可參考儀器使用手冊，建議查明可能原因，並休息5分鐘後再次重新量測。'];
}

